package com.mc.code.entity.sys;

public class SysMenu {
    private int id;
    //父级菜单的id
    private int pid;
    //菜单的名称
    private String name;
    //需要传到的路径
    private String url;

    public SysMenu() {
    }

    public SysMenu(int id, int pid, String name, String url) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.url = url;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "SysMenu{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
